Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix camera lerp and support easing functions #610

Merged
merged 9 commits into from
Jul 12, 2016
Merged

Conversation

kamranayub
Copy link
Member

@kamranayub kamranayub commented Jul 11, 2016

Closes #555, #320

Add camera.move and support EasingFunctions

  • Removed lerp property (breaking change)
  • Removed deprecated setFocus method (breaking change)
  • Added new move function to support lerping to a position which returns a Promise<Vector>
  • Added support for ex.EasingFunctions
  • Added new interface definition for an EasingFunction
  • Update tslint and grunt-tslint

- Removed `lerp` property (breaking change)
- Removed deprecated `setFocus` method (breaking change)
- Added new `move` function to support lerping to a position
- Added support for `ex.EasingFunctions`
@kamranayub kamranayub added bug This issue describes undesirable, incorrect, or unexpected behavior enhancement Label applied to enhancements or improvements to existing features labels Jul 11, 2016
@kamranayub kamranayub added this to the 0.7.1 Release milestone Jul 11, 2016
@kamranayub kamranayub changed the title [Closes #555, #320] Fix camera lerp and support easing functions Fix camera lerp and support easing functions Jul 11, 2016
if (!this._follow && !this.lerp) {
this.x = x;
this.y = y;
public move(pos: Vector, duration: number, easingFn: EasingFunction = EasingFunctions.EaseInOutCubic) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would useful if move returned a promise that resolved when this movement is complete

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@eonarheim eonarheim merged commit 67e1a0e into master Jul 12, 2016
@eonarheim eonarheim deleted the 555-camera-lerp branch July 12, 2016 03:42
@jedeen jedeen modified the milestones: 0.7.1 Release, 0.7.0 Release Jul 31, 2016
@eonarheim eonarheim mentioned this pull request Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior enhancement Label applied to enhancements or improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants